/**
 * @file LedByObject.ino
 * @author JacobFang (1570468006@qq.com)
 * @brief 
 * @version 1.0
 * @date 2022-02-13
 * 
 * @copyright Copyright (c) 2022
 * 
 */
#include "myLed.h"

/**
 * @brief 系统初始化
 *
 */
void setup()
{
  Serial.begin(9600); //配置波特率
  
  Led myLed;
  Led myLed2(7);

  Serial.println("Hello, this is from Setup()");
  
  int myLedPin = myLed.getLedPin();
  Serial.print("int myLedPin = ");
  Serial.println(myLedPin);

  int myLed2Pin = myLed2.getLedPin();
  Serial.print("int myLed2Pin = ");
  Serial.println(myLed2Pin);
  
  for(int i = 0; i < 3; i++)
  {
    myLed.on();
    myLed2.on();
    delay(1000);
    myLed.off();
    myLed2.off();
    delay(1000);
  }
}

/**
 * @brief 主函数
 *
 */
void loop()
{

}
